package com.xywh.micro_warehousing.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xywh.micro_warehousing.mvp.contract.DownMapShowContract;
import com.xywh.micro_warehousing.mvp.model.DownMapShowModel;


@Module
public class DownMapShowModule {
    private DownMapShowContract.View view;

    /**
     * 构建DownMapShowModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public DownMapShowModule(DownMapShowContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    DownMapShowContract.View provideDownMapShowView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    DownMapShowContract.Model provideDownMapShowModel(DownMapShowModel model) {
        return model;
    }
}